package com.mspbots.core.account.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.mspbots.core.BaseEntity;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * com.mspbots.core.account.model.TenantDepartment
 *
 * @author Jason
 * @date 2019/12/10
 **/
@Data
@NoArgsConstructor
@TableName(value = "tenant_department", autoResultMap = true)
public class TenantDepartment extends BaseEntity {

    private String name;
    private String details;
    private Long createUserId;
    private LocalDateTime updateTime;
    private LocalDateTime createTime;
    private Long parentId;
    private Boolean enable;


    @Builder
    public TenantDepartment(Long id, Long tenantId, String name, String details, Long createUserId,
                            LocalDateTime updateTime, LocalDateTime createTime, Long parentId, Boolean enable) {
        this.name = name;
        this.details = details;
        this.createUserId = createUserId;
        this.updateTime = updateTime;
        this.createTime = createTime;
        this.parentId = parentId;
        this.enable = enable;
    }
}
